import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';

@Plugin({
  pluginName: 'Launcher',
  plugin: 'cordova-plugin-launcher', // npm App name, example: cordova-plugin-camera
  pluginRef: 'plugins.launcher',  //必须跟 platforms/android/assets/cordova_plugins.js中的clobbers的变量名称一致，区分大小写
  platforms: ['Android','iOS'], // Array of platforms supported, example: ['Android', 'iOS']
})
@Injectable()
export class Launcher extends IonicNativePlugin {

  @Cordova()
  launch(params:any):Promise<any>{return;}

  @Cordova()
  canLaunch(params:any):Promise<any>{return;}

}